"use strict";
var router_1 = require('@angular/router');
var layout_component_1 = require('../layout/layout.component');
var bearing_component_1 = require('./bearing.component');
var bearing_list_component_1 = require('./bearing-list.component');
var bearing_detail_component_1 = require('./bearing-detail.component');
var bearing_add_component_1 = require('./bearing-add.component');
var placeholder_component_1 = require('./placeholder.component');
var auth_guard_1 = require('../auth-guard');
var auth_service_1 = require('../scheme/auth.service');
var bearingRoutes = [
    {
        path: 'admin',
        component: layout_component_1.LayoutComponent,
        canActivateChild: [auth_guard_1.AuthGuard],
        children: [{
                path: 'bearing',
                component: bearing_component_1.BearingComponent,
                children: [
                    {
                        path: '',
                        redirectTo: '/admin/bearing/list',
                        pathMatch: 'full'
                    },
                    {
                        path: 'list',
                        component: bearing_list_component_1.BearingListComponent,
                        children: [
                            {
                                path: '',
                                component: placeholder_component_1.PlaceholderComponent
                            },
                            {
                                path: ':id',
                                component: bearing_detail_component_1.BearingDetailComponent
                            }
                        ]
                    },
                    {
                        path: 'add',
                        component: bearing_add_component_1.BearingAddComponent
                    }
                ]
            }]
    }
];
exports.bearingRoutingProviders = [
    auth_guard_1.AuthGuard,
    auth_service_1.AuthService
];
exports.bearingRouting = router_1.RouterModule.forChild(bearingRoutes);
